﻿using Abp.Domain.Entities;
using HCD.Enums;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace HCD.Entities
{
    [Table("SIMPLE_DICT")]
    public class SimpleDict : Entity<long>
    {
        /// <summary>
        /// 类型代码
        /// </summary>
        [Column("TYPE_CODE", TypeName = "VARCHAR(20)"),Required]
        public string TypeCode { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        [Column("TYPE_NAME", TypeName = "VARCHAR(20)"),Required]
        public string TypeName { get; set; }
        /// <summary>
        /// 项目代码
        /// </summary>
        [Column("ITEM_CODE")]
        public EnumBitwise ItemCode { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [Column("ITEM_NAME", TypeName = "VARCHAR(20)"), Required]
        public string ItemName { get; set; }

        /// <summary>
        /// 拼音码
        /// </summary>
        [Column("INPUT_CODE", TypeName = "VARCHAR(20)"), Required]
        public string InputCode { get; set; }

        /// <summary>
        /// 五笔码
        /// </summary>
        [Column("INPUT_CODE_WB", TypeName = "VARCHAR(20)")]
        public string InputCodeWb { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Column("SORT")]
        public short Sort { get; set; }
    }
}
